<?php

namespace App\Http\Criteria;

use App\Repository\Criteria;
use App\Repository\Constracts\RepositoryInterface as Repository;

class MobileCriteria extends Criteria
{
    private $mobile;

    public function __construct($mobile)
    {
        $this->mobile = $mobile;
    }

    public function apply($model, Repository $repository)
    {
        return $model->where('mobile', $this->mobile);
    }

}
